package com.itcoon.cloud.framework.enums;/**
 * @author Athric Yu
 * 2024/9/25
 **/

/**
 * 排序 enum
 * @author Athric Yu
 * 2024/9/25
 **/
public enum AscDescEnum implements CodeEnum<AscDescEnum>, DescribedEnum<AscDescEnum>{
    ASC(10, "asc"),
    DESC(20, "desc");

    private final int code;
    private final String description;

    AscDescEnum(int code, String description) {
        this.code = code;
        this.description = description;
    }


    @Override
    public String description() {
        return this.description;
    }

    @Override
    public Integer value() {
        return this.code;
    }
}
